home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Modules / BackSpaceModules / Source / AquariumView / Fish.h < prev    next >
Text File  |  1993-03-10  |  586b  |  40 lines

  1. #import <objc/Object.h>
  2. #import <appkit/graphics.h>
  3.  
  4. typedef struct { float l,b,r,t; } BRECT;
  5.  
  6. @interface Fish:Object
  7. {
  8.     float    WIDTH;
  9.     float    HEIGHT;
  10.  
  11.     int    imageNum;    // Someday I should be able to do animate the fish better
  12.  
  13.     NXSize    sizeOfAquar;
  14.  
  15.     NXRect    old;
  16.     NXPoint    fishTo;
  17.     NXPoint    redrawTo;
  18.     NXRect    redraw;
  19.  
  20.     id    fish;
  21.     id    buffer;
  22.  
  23.     id    brain;
  24.  
  25.     id    aquarium;            // the fish's aquarium (or view)
  26.  
  27.     BOOL    direction;    // Possibly an object dedicated to this??
  28.  
  29.  
  30. }
  31.  
  32. - init:sender;
  33. - move:listOfFish;
  34. - viewDidResize;
  35. - (NXRect)getRect;
  36. - simpleDraw:(NXPoint *)point;
  37. - clearBuffer;
  38.  
  39. @end
  40.